package com.mycompany.myapp.service.dto;

import java.io.Serializable;
import java.util.Objects;

/**
 * A DTO for the {@link com.mycompany.myapp.domain.StudentScore} entity.
 */
public class StudentScoreDTO implements Serializable {

    private Long id;

    private Long score;

    private Integer scoreStatus;

    private StudentDTO student;

    private TeacherDTO teacher;

    private UserClassDTO userClass;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getScore() {
        return score;
    }

    public void setScore(Long score) {
        this.score = score;
    }

    public Integer getScoreStatus() {
        return scoreStatus;
    }

    public void setScoreStatus(Integer scoreStatus) {
        this.scoreStatus = scoreStatus;
    }

    public StudentDTO getStudent() {
        return student;
    }

    public void setStudent(StudentDTO student) {
        this.student = student;
    }

    public TeacherDTO getTeacher() {
        return teacher;
    }

    public void setTeacher(TeacherDTO teacher) {
        this.teacher = teacher;
    }

    public UserClassDTO getUserClass() {
        return userClass;
    }

    public void setUserClass(UserClassDTO userClass) {
        this.userClass = userClass;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof StudentScoreDTO)) {
            return false;
        }

        StudentScoreDTO studentScoreDTO = (StudentScoreDTO) o;
        if (this.id == null) {
            return false;
        }
        return Objects.equals(this.id, studentScoreDTO.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(this.id);
    }

    // prettier-ignore
    @Override
    public String toString() {
        return "StudentScoreDTO{" +
            "id=" + getId() +
            ", score=" + getScore() +
            ", scoreStatus=" + getScoreStatus() +
            ", student=" + getStudent() +
            ", teacher=" + getTeacher() +
            ", userClass=" + getUserClass() +
            "}";
    }
}
